#include <iostream>
using namespace std;
struct student
{
	int idnum;
	char name[15];
	int age;
	char department[20];
	float gpa;
};

void display(student arg)
{
	cout << "IdNumber: " << arg.idnum << endl << "Name: " << arg.name << endl << "Age: " << arg.age << endl;
	cout << "Department: " << arg.department << endl << "Average grade: " << arg.gpa << endl;
}

student initial()
{
	student s = {4004, "Tom", 20, "xinxi", 88.8};
	return s;
}

int main()
{
	display(initial());//structure as return value.
	return 0;
}
